"""Removed unique contstraint from proxy port_https

Revision ID: 029fe274c850
Revises: 572e67e3abcc
Create Date: 2023-02-06 18:18:44.174897

"""
from alembic import op

# revision identifiers, used by Alembic.
revision = "029fe274c850"
down_revision = "572e67e3abcc"
branch_labels = None
depends_on = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index("port_https", table_name="proxy")
    op.create_unique_constraint(None, "proxy", ["login"])
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint(None, "proxy", type_="unique")
    op.create_index("port_https", "proxy", ["port_https"], unique=False)
    # ### end Alembic commands ###
